package Text11;

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = scanner.nextInt();
        }
        int left = 0;
        int right = 0;
        for (int i = 1; i < n; i++) {
            if (Math.abs(a[0]) > Math.abs(a[i]) && a[i] > 0) {
                left++;
            } else if (Math.abs(a[0]) < Math.abs(a[i]) && a[i] < 0) {
                right++;
            }
        }
        if (a[0] > 0 && right == 0 || a[0] < 0 && left == 0) {
            System.out.println(1);
        } else {
            System.out.println(left+right+1);
        }
    }
}
